<template>
	<div class="common-layout">
		<el-header>订单</el-header>
		<el-main>
			<el-table :data="orderlist.orders">
				<el-table-column prop="ordid" label="订单号"></el-table-column>
				<el-table-column label="电话"></el-table-column>
				<el-table-column label="收货人"></el-table-column>
				<el-table-column label="总价"></el-table-column>
				<el-table-column label="是否付款"></el-table-column>
				<el-table-column label="发货单号"></el-table-column>
				<el-table-column label="发货地址"></el-table-column>
				<el-table-column label="下单时间">
					<template #default="score">{{filtime(score.row.tcreate)}}</template>
				</el-table-column>
				<el-table-column label="操作">
					<template>
						<el-button>明细</el-button>
						<el-button type="success">发货</el-button>
					</template>
				</el-table-column>
			</el-table>
			
		</el-main>
	</div>
</template>

<script>
	//引入拦截器
	import instance from '../../../ajax'
	export default{
		name:'Order',
		data(){
			return{
				start:0,
				num:10,
				orderlist:[]
			}
		},
		created() {
			// instance.post(`/api/adm/ord/findItemInfoByOrdid/0/${this.num}`,this.findBy,{
			// 			headers:{'Content-Type':'application/x-www-form-urlencoded;charset=UTF-8'}
			// 		}).then((res)=>{
			// 	if (res.data.code==200) {
			// 		this.orderlist=res.data.data
			// 		console.log(res.data.data)
			// 	}
			// }).catch((error)=>{
			// 	console.log(error)
			// })
		},
		watch:{
			filtime(){
				return (x)=>{
					return x
				}
			}
		}
	}
</script>

<style>
</style>
